package com.example.sentinel;

import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author: ash
 * @time: 2024/2/8  21:17:57
 * @description:
 */

@SpringBootApplication
public class SentinelConfigApplication {

    public static void main(String[] args) {
        SpringApplication.run(SentinelConfigApplication.class,args);
    }

    @Bean
    public SentinelResourceAspect sentinelResourceAspect(){
        return new SentinelResourceAspect();
    }
}
